<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html class="pixel-ratio-1">
<head>
<title>游戏代理后台</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">

<meta name="description" content="">

<link rel="stylesheet" href="templates/default/skins/default/h5/lib/weui.min.css">
<link rel="stylesheet" href="templates/default/skins/default/h5/css/jquery-weui.css">
<link rel="stylesheet" href="templates/default/skins/default/h5/css/lehe.css">

</head>

<body ontouchstart="">
	<div class="weui-tab">
		<div class="weui-tab__bd">
			<div id="tab1" class="weui-tab__bd-item weui-tab__bd-item--active">
				<header class="lehe-header">
				<div class="lehe_center">
					<img class="head_image" src="${userInfo.userImg}" alt="">
				</div>
				<h1 class="lehe-title">${userInfo.nickName}</h1>
				<div class="lehe_center">
					<span class="lehe-sub-title">UID:</span> <span
						class="lehe-sub-title-info">${userInfo.userId}</span>
				</div>
				<div class="lehe_center">
					<span class="lehe-sub-title">我的等级:</span>
					<span class="lehe-sub-title-info">
					<c:choose>
						<c:when test="${userInfo.userLevel == 0}">特级代理商</c:when>
						<c:when test="${userInfo.userLevel == 1}">一级代理商</c:when>
						<c:when test="${userInfo.userLevel == 2}">二级代理商</c:when>
						<c:when test="${userInfo.userLevel == 3}">三级代理商</c:when>
					</c:choose>
					</span>
					<span class="lehe-sub-title">今日总充值:</span>
					<span class="lehe-sub-title-info"><fmt:formatNumber value="${userInfo.payCount}" pattern="#0.00" />元</span>
				</div>
				<%--<div class="lehe_center">
					<span class="lehe-sub-title">今日总充值：</span>
					<span class="lehe-sub-title-info"><fmt:formatNumber value="${userInfo.payCount}" pattern="#0.00" />元</span>
				</div>--%>
				<div class="lehe_center">
					<span class="lehe-sub-title">我的金币:</span>
					<span class="lehe-sub-title-info">${userInfo.goldCoinCount}</span>
					<%--<span class="lehe-sub-title">我的房卡:</span>
					<span class="lehe-sub-title-info">${userInfo.roomCardCount}</span>--%>
				</div>
				<%--<div class="lehe_center">
					<span class="lehe-sub-title">我的房卡：</span>
					<span class="lehe-sub-title-info">${userInfo.roomCardCount}</span>
				</div>--%>
				</header>

				<div class="weui-grids" style="margin-bottom: 51px;">
					<a href="wx/pay"
						class="weui-grid js_grid" style="height: 140px;">
						<div class="weui-grid__icon" style="width: 80px; height: 80px;">
							<img src="upload/icon_pay.png" alt="">
						</div>
						<p class="weui-grid__label">充值记录</p>
						<%--<p class="weui-grid__label">(${userInfo.myPayCount+userInfo.myPlayerPayCount+userInfo.myAngentPayCount})</p>--%>
					</a>
					<a href="wx/playerPayDetailList"
						class="weui-grid js_grid" style="height: 140px;">
						<div class="weui-grid__icon" style="width: 80px; height: 80px;">
							<img src="upload/icon_player.png" alt="">
						</div>
						<p class="weui-grid__label">我的玩家</p>
						<%--<p class="weui-grid__label">(${userInfo.myPlayerPayCount})</p>--%>
					</a>
					<c:if test="${userInfo.userLevel != 3}">
					<a href="${ctx }/wx/agentPay"
						class="weui-grid js_grid" style="height: 140px;">
						<div class="weui-grid__icon" style="width: 80px; height: 80px;">
							<img src="upload/icon_agent.png" alt="">
						</div>
						<p class="weui-grid__label">我的代理商</p>
						<%--<p class="weui-grid__label">(${userInfo.myAngentPayCount})</p>--%>
					</a>
					</c:if>
					<c:if test="${userInfo.userLevel < 2}">
					<a href="agent"
						class="weui-grid js_grid" style="height: 140px;">
						<div class="weui-grid__icon" style="width: 80px; height: 80px;">
							<img src="upload/icon_auth.png" alt="">
						</div>
						<p class="weui-grid__label">代理商授权</p>
					</a>
					</c:if>
					<a href="agent/charge"
						class="weui-grid js_grid" style="height: 140px;">
						<div class="weui-grid__icon" style="width: 80px; height: 80px;">
							<img src="upload/icon_move.png" alt="">
						</div>
						<p class="weui-grid__label">转移金币</p>
					</a>
					<c:if test="${userInfo.userLevel < 2}">
					<a href="cash/index"
					   class="weui-grid js_grid" style="height: 140px;">
						<div class="weui-grid__icon" style="width: 80px; height: 80px;">
							<img src="upload/icon_gold.png" alt="">
						</div>
						<p class="weui-grid__label">返点提现</p>
					</a>
					</c:if>
					<%--<a href="agent/buyGoldCoin"
					   class="weui-grid js_grid" style="height: 140px;">
						<div class="weui-grid__icon" style="width: 80px; height: 80px;">
							<img src="upload/icon_gold.png" alt="">
						</div>
						<p class="weui-grid__label">代理购币</p>
					</a>--%>

				</div>
			</div>
			<div id="tab2" class="weui-tab__bd-item">
				<h1 class="lehe-title" style="text-align:left">商城施工中，购买请联系客服</h1>
			</div>
			<div id="tab3" class="weui-tab__bd-item">
				<header class="lehe-header">
					<div class="page__bd">
						<article class="weui-article">
							<h1 class="lehe-title1">代理返现政策：</h1>
							<section>
								<h2 class="title"></h2>
								<section>
									<h3>一、返利</h3>
									<p>1、下属代理月累计充值1-2999元，返20%现金。</p>
									<p>2、下属代理月累计充值3000-4999元，返25%现金。</p>
									<p>3、下属代理月累计充值5000-9999元，返35%现金。</p>
									<p>4、下属代理月累计充值10000-19999元，返45%现金。</p>
									<p>5、下属代理月累计充值20000元以上，返55%现金</p>
								</section>
								<section>
									<h3>二、注意</h3>
									<p>1、代理与代理与下级代理不能转移金币，所有代理均需在官方客服处购买，购买信息根据绑定关系会在代理后台显示，业绩可在代理后台随时查询。</p>
									<p>2、每月下级代理累积充值，根据比例在每月10号提现。</p>
									<p>3、返现有效数据包含“官方客服”整充和“软件内商城”散充。</p>
									<p>4、返现政策在2017年11月15日起生效。</p>
								</section>
							</section>
						</article>
					</div>
				</header>
			</div>
			<div id="tab4" class="weui-tab__bd-item">
				<header class="lehe-header">
				<div class="lehe_center">
					<img src="upload/com_logo.png" alt="" width="300px;">
				</div>
				</header>

				<div class="bd">
					<div class="page__bd">
						<div class="weui-cells">
							<div class="weui-cell">
								<div class="weui-cell__bd">
									<p>客服电话</p>
								</div>
								<div class="weui-cell__ft">15116356308</div>
							</div>
							<div class="weui-cell">
								<div class="weui-cell__bd">
									<p>官方邮箱</p>
								</div>
								<div class="weui-cell__ft">3467742703@qq.com</div>
							</div>
							<div class="weui-cells__title">官方微信</div>
							<div class="weui-cell">
								<div class="weui-cell__bd">
									<div class="lehe_center">
										<img src="templates/default/skins/default/images/we_code.jpg"
											alt="">
									</div>
								</div>
								<div class="weui-cell__ft"></div>
							</div>
							<div class="weui-cell">
								<div class="weui-cell__ft"></div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>

		<div class="weui-tabbar">
			<a href="#tab1" class="weui-tabbar__item weui-bar__item--on">
				<div class="weui-tabbar__icon">
					<img
						src="templates/default/skins/default/h5/images/icon_nav_button.png"
						alt="">
				</div>
				<p class="weui-tabbar__label">首页</p>
			</a>
			<%--<a href="agent/buyGoldCoin" class="weui-tabbar__item">--%>
			<a href="http://m.qpqpgame.com/wanko_pay/AgentBuyCoin.php" class="weui-tabbar__item">
				<div class="weui-tabbar__icon">
					<img
						src="templates/default/skins/default/h5/images/icon_nav_msg.png"
						alt="">
				</div>
				<p class="weui-tabbar__label">商城</p>
			</a>
			<a href="#tab3" class="weui-tabbar__item">
				<div class="weui-tabbar__icon">
					<img
						src="templates/default/skins/default/h5/images/icon_nav_article.png"
						alt="">
				</div>
				<p class="weui-tabbar__label">活动</p>
			</a>
			<a href="#tab4" class="weui-tabbar__item">
				<div class="weui-tabbar__icon">
					<img
						src="templates/default/skins/default/h5/images/icon_nav_cell.png"
						alt="">
				</div>
				<p class="weui-tabbar__label">关于</p>
			</a>
		</div>
	</div>

	<script src="templates/default/skins/default/h5/lib/jquery-2.1.4.js"></script>
	<script src="templates/default/skins/default/h5/lib/fastclick.js"></script>
	<script>
		$(function() {
			FastClick.attach(document.body);
		});
	</script>
	<script src="templates/default/skins/default/h5/js/jquery-weui.js"></script>

</body>
</html>